Feature: Get Plan details

  @happy
  Scenario: Request Contains valid carrier id and plan id - System return plan details
    When I send a POST request to "quote/ifp/9811/200032"
      """
      {
       "zipCode": "98001",
       "allianceId": "Gro21010",
       "county": "",
       "members": {
       "primary": {
       "gender": "MALE",
        "birthday": "01/01/2000",
        "smoker": false,
        "student": false
       }
       },
       "requestEffectiveDate": "08/01/2016",
       "qualifyingLifeEvent": "OTHER",
       "dateOfEvent": null,
       "forcedOep": false
       }
      """
    Then the response status should be 200
    And the JSON response should contain key:value "plan.carrierId":"9811"
    And the JSON response should contain key:value "plan.logicalId":"200017"
    And the JSON response should contain key:value "plan.planName":"Core Bronze HSA"


  @happy
  Scenario: Request Contains multiple members - System return plan details
    When I send a POST request to "quote/ifp/9811/200032"
      """
    {
    "zipCode": "98001",
    "allianceId": "Gro21010",
    "county": "",
    "members": {
        "primary": {
            "gender": "MALE",
            "birthday": "01/01/1980",
            "smoker": false,
            "student": false
        },
         "secondary": {
           "gender": "FEMALE",
           "birthday": "01/02/1989",
           "smoker": false,
           "student": false
       },
         "children":[{
            "gender": "Male",
            "birthday": "01/02/2010",
            "smoker": false,
            "student": false
        }]
       },
         "requestEffectiveDate": "08/01/2016",
         "qualifyingLifeEvent": "OTHER",
         "dateOfEvent": null,
         "forcedOep": false
      }
      """
    Then the response status should be 200
    And the JSON response should contain key:value "plan.carrierId":"9811"
    And the JSON response should contain key:value "plan.logicalId":"200017"
    And the JSON response should contain key:value "plan.planName":"Core Bronze HSA"

    
 
 @sad
  Scenario: Check the error message when there is no plan return with the census info
    When I send a POST request to "quote/ifp/9811/200032"
      """
      {
    "zipCode": "98001",
    "allianceId": "Gro21010",
    "county": "",
    "members": {
        "primary": {
            "gender": "MALE",
            "birthday": "01/01/2000",
            "smoker": false,
            "student": false
        },
         "secondary": {
           "gender": "FEMALE",
           "birthday": "01/02/1989",
           "smoker": false,
           "student": false
       }
    },
    "requestEffectiveDate": "08/01/2016",
    "qualifyingLifeEvent": "OTHER",
    "dateOfEvent": null,
    "forcedOep": false
}
      """
    Then the response status should be 200
    And the JSON response should be
      """
      {}
      """